package com.daervin.svc.common.dto;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by daervin on 2023/8/18
 */
public class WhProductDTO {
    /**
     * 商品id
     */
    private Long id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 供应商
     */
    private WhSupplierDTO supplierInfo;
    private Long supplierId;

    /**
     * 品类
     */
    private WhCategoryDTO categoryInfo;
    private Long categoryId;

    /**
     * 图片
     */
    private String img;

    private BigDecimal price;

    private BigDecimal showPrice;

    /**
     * 条码编号
     */
    private String barCode;

    private BarCodeDTO barCodeInfo;

    /**
     * 商品说明
     */
    private String ext;

    /**
     * 创建时间
     */
    private Date createTime;
    private String createTimeStr;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public WhSupplierDTO getSupplierInfo() {
        return supplierInfo;
    }

    public void setSupplierInfo(WhSupplierDTO supplierInfo) {
        this.supplierInfo = supplierInfo;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public WhCategoryDTO getCategoryInfo() {
        return categoryInfo;
    }

    public void setCategoryInfo(WhCategoryDTO categoryInfo) {
        this.categoryInfo = categoryInfo;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getShowPrice() {
        return showPrice;
    }

    public void setShowPrice(BigDecimal showPrice) {
        this.showPrice = showPrice;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public BarCodeDTO getBarCodeInfo() {
        return barCodeInfo;
    }

    public void setBarCodeInfo(BarCodeDTO barCodeInfo) {
        this.barCodeInfo = barCodeInfo;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }
}
